package com.org.aaron.spring;

import java.net.InetAddress;
import java.net.UnknownHostException;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.org.aaron.vo.Info;

@Controller
@RequestMapping(value = "/maybe")
public class IndexController {
    private static final String INDEX = "index.jsp";
    private static final String AARONWEI = "不知道干啥了";
	/**
	 * 测试页面1
	 * 
	 * @param model
	 * @return
	 */
	@RequestMapping(value = "/index")
	public String one(Model model, HttpServletRequest request) {
		return "index";
	}

	@RequestMapping(value = "/send")
	public String sendPage(Model model) {
		model.addAttribute(AARONWEI,AARONWEI);
		return "send";
	}

	@RequestMapping(value = "/test")
	public String test(Model model, Info info) {
		model.addAttribute("aaronwei", AARONWEI);
		return "test/test";
	}

}